package com.crm.constant.dto;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author : CRM_SYSTEM
 * @date : 2022/03/28 14:07
 */
@AllArgsConstructor
@Getter
public enum ResultCode {
    /**
     *
     */
    //成功状态码
    SUCCESS(200,"成功"),
    FAIL(201,"失败"),
    EXCEPTION(400,"系统异常！"),
    EXCEPTION_NO_PERMISSION(401,"权限不足,无法访问！"),
    EXCEPTION_NO_PARAMETER(402,"方法参数异常！"),
    EXCEPTION_TOKEN(403,"TOKEN错误或者不存在！"),
    EXCEPTION_NOT_EMPLOYEE(404,"员工不存在！"),
    EXCEPTION_PASSWORD_ERROR(405,"密码错误！"),
    EXCEPTION_EMPLOYEE_EXIST(406,"员工已存在！"),
    EXCEPTION_FILE_NOT_EXIST(407,"文件为空！"),
    EXCEPTION_FILE_FAIL(408,"上传文件失败！"),


    EXCEPTION_STATUS_FAIL(410,"错误状态！"),



    EXCEPTION_SITE_FAIL(450,"场地仍关联有图片或者有效的服务，不允许删除！"),



    EXCEPTION_PROJECT_EMP_NUMBER(470,"项目已预约人数大于本次修改人数，不允许修改！"),
    EXCEPTION_PROJECT_SITE_DATE(471,"项目已关联场地去其他使用中项目开始结束时间冲突，无法保存！"),
    EXCEPTION_PROJECT_DATE(472,"项目时间规则：预约开始时间>项目开始时间&&预约结束时间>项目结束时间！"),


    EXCEPTION_PROJECT_EMP_DATE(490,"项目不处于启用状态，不允许预约！"),
    EXCEPTION_PROJECT_EMP_FULL(491,"项目预约人数已满，不允许预约！"),
    EXCEPTION_PROJECT_EMP_REPEAT(492,"已预约过该项目，不允许预约！"),
    EXCEPTION_PROJECT_EMP_ORDER_DATE(493,"不在预约时间段，不允许预约！"),
    EXCEPTION_PROJECT_USE(494,"项目不在进行中或者已结束，不允许核销！"),




    ;

    private final int code;
    private final String message;
}
